Example #1
0
    protected void lnk_FEEDBACK_ID_Command(object sender, CommandEventArgs e)
    {
        try
        {
            _obj_SMHR_TRAININGFEEDBACK_RESPONSE.OPERATION   = operation.MODE;
            _obj_SMHR_TRAININGFEEDBACK_RESPONSE.FEEDBACK_ID = Convert.ToInt32(Convert.ToString(e.CommandArgument));
            lbl_id.Text = Convert.ToString(e.CommandArgument);

            DataTable DT = BLL.get_FeedbackResponse(_obj_SMHR_TRAININGFEEDBACK_RESPONSE);
            if (DT.Rows.Count != 0)
            {
                LoadCombos();
                rcmb_BU.SelectedIndex       = rcmb_BU.Items.FindItemIndexByValue(Convert.ToString(DT.Rows[0]["FEEDBACK_BU_ID"]));
                rcmb_TRName.SelectedIndex   = rcmb_TRName.Items.FindItemIndexByValue(Convert.ToString(DT.Rows[0]["FEEDBACK_TR_ID"]));
                rcmb_Type.SelectedItem.Text = Convert.ToString(DT.Rows[0]["FEEDBACK_CATEGORY"]);
                //rcm_employee.SelectedIndex = rcm_employee.Items.FindItemIndexByValue(Convert.ToString(DT.Rows[0]["TRAINERDETAILS_EMPLOYEEID"]));
                rtxt_FeedbackName.Text        = Convert.ToString(DT.Rows[0]["FEEDBACK_NAME"]);
                rtxt_FeedbackDescription.Text = Convert.ToString(DT.Rows[0]["FEEDBACK_DESCRIPTION"]);
                //rcm_employee.DataSource = DT;
                //rcm_employee.DataTextField = "EMP_EMPCODE";
                //rcm_employee.DataValueField = "TRAINERDETAILS_EMPLOYEEID";
                //rcm_employee.DataBind();

                rlb_Quetions.DataSource     = DT;
                rlb_Quetions.DataTextField  = "FEEDBACKQUESTS_QUESTION";
                rlb_Quetions.DataValueField = "FEEDBACKQUESTS_ID";
                rlb_Quetions.DataBind();
                rlb_Quetions.Enabled   = false;
                rcmb_BU.Enabled        = false;
                rcmb_TRName.Enabled    = false;
                rcmb_Type.Enabled      = false;
                RG_FeedBack.DataSource = DT;
                RG_FeedBack.DataBind();

                RG_FeedBack.Visible = true;
                Rm_TRGFEEDABCK_PAGE.SelectedIndex = 1;
                btn_assign.Visible = true;
                //rcm_employee.Visible = true;
                btn_Cancel.Visible = true;
                //lbl_assign.Visible = true;
                btn_Finalize.Visible               = false;
                btn_Preview.Visible                = false;
                btn_Save.Visible                   = false;
                btn_Cancel.Visible                 = false;
                rtxt_FeedbackName.Enabled          = false;
                rtxt_FeedbackDescription.Enabled   = false;
                Rp_TRGFEEDABCK_VIEWMAIN.Visible    = false;
                RP_trgfeedback_VIEWDETAILS.Visible = true;
            }
        }
        catch (Exception ex)
        {
            SMHR.BLL.Error_Log(Session["USER_ID"].ToString(), ex.TargetSite.ToString(), ex.Message.Replace("'", "''"), "frm_TrainingFeedBack", ex.StackTrace, DateTime.Now);
            Response.Redirect("~/Frm_ErrorPage.aspx");
        }
    }
Example #2
0
 protected void QuestionRadListBox_ItemCheck(object sender, Telerik.Web.UI.RadListBoxItemEventArgs e)
 {
     try
     {
         RG_FeedBack.Visible = true;
         StringBuilder          sb         = new StringBuilder();
         IList <RadListBoxItem> collection = rlb_Quetions.CheckedItems;
         foreach (RadListBoxItem item in collection)
         {
             if (sb.Length == 0)
             {
                 sb.Append(item.Value);
             }
             else
             {
                 sb.Append("," + item.Value);
             }
         }
         Label1.Text = sb.ToString();
         if (Label1.Text == "")
         {
             _obj_SMHR_FEEDBACK_QUESTION.FEEDBACK_ID = Convert.ToString(0);
         }
         else
         {
             _obj_SMHR_FEEDBACK_QUESTION.FEEDBACK_ID = Convert.ToString(Label1.Text);
         }
         _obj_SMHR_FEEDBACK_QUESTION.OPERATION = operation.EMPTY1;
         DataTable dt = BLL.get_FeedbackQuestion(_obj_SMHR_FEEDBACK_QUESTION);
         RG_FeedBack.DataSource = dt;
         Session["datatable"]   = dt;
         RG_FeedBack.DataBind();
         RG_FeedBack.Visible = true;
     }
     catch (Exception ex)
     {
         SMHR.BLL.Error_Log(Session["USER_ID"].ToString(), ex.TargetSite.ToString(), ex.Message.Replace("'", "''"), "frm_TrainingFeedBack", ex.StackTrace, DateTime.Now);
         Response.Redirect("~/Frm_ErrorPage.aspx");
     }
 }