Exemplo n.º 1
0
        public void BindComplainValues()
        {
            ComplainManagement objComplain = ComplainController.GetComplainById(Id);

            txtComplainCode.Text = objComplain.ComplainCode;
            txtComplainMsg.Text  = objComplain.ComplainMessage;
            objComplain          = new ComplainController().UpdateComplain(objComplain);
        }
Exemplo n.º 2
0
        protected void btnFeedback_Click(object sender, EventArgs e)
        {
            try
            {
                ComplainManagement objComplain = ComplainController.GetComplainById(Id);

                objComplain.Feedback = txtFeedback.Text;
                objComplain.Status   = ddlStatus.SelectedItem.Text;
                objComplain          = new ComplainController().UpdateComplain(objComplain);
                ScriptManager.RegisterStartupScript(this.Page, this.GetType(), "succ_msg", "MessageBox('Success','Your Feedback Saved Successfully');", true);
                BindGrid();
            }
            catch (Exception ex)
            {
                throw ex;
            }
        }
Exemplo n.º 3
0
        private void UpdateComplain()
        {
            try
            {
                ComplainManagement objComplain = new ComplainManagement();
                objComplain.clubId          = LoginUser.ClubId;
                objComplain.userId          = LoginUser.ID;
                objComplain.ComplainCode    = txtComplainCode.Text;
                objComplain.ComplainMessage = txtComplainMsg.Text;
                objComplain.Status          = "Pending";
                objComplain.updateBy        = LoginUser.FirstName + ' ' + LoginUser.LastName;


                objComplain = new ComplainController().UpdateComplain(objComplain);
                ScriptManager.RegisterStartupScript(this.Page, this.GetType(), "succ_msg", "MessageBox('Success','Your Complain Updated Successfully');", true);
            }
            catch (Exception ex)
            {
                throw ex;
            }
        }