public void ListData()
        {
            DataTable lstUser = default(DataTable);

            lstUser = ObjclsFrms.loadList("SelectOrderDetail", "sp_Masters", ResponseID.ToString());
            if (lstUser.Rows.Count > 0)
            {
                grvRpt.DataSource = lstUser;
            }
        }
        public void Save()
        {
            string id, status;

            id     = ResponseID.ToString();
            status = "C";
            string[] arr   = { status.ToString() };
            string   Value = ObjclsFrms.SaveData("sp_Masters", "UpdateOrderStatus", id.ToString(), arr);
            int      res   = Int32.Parse(Value.ToString());

            if (res > 0)
            {
                ScriptManager.RegisterStartupScript(this.Page, this.GetType(), "tmp", "<script type='text/javascript'>successModal();</script>", false);
            }
            else
            {
                ScriptManager.RegisterStartupScript(this.Page, this.GetType(), "tmp", "<script type='text/javascript'>failedModal();</script>", false);
            }
        }
Exemple #3
0
        public override bool Equals(object obj)
        {
            var response = obj as Response;

            if (response != null)
            {
                return(ResponseID.ToString().Equals(response.ResponseID.ToString(), StringComparison.Ordinal) &&
                       RespondentID.Equals(response.RespondentID) &&
                       SurveyDate.Equals(response.SurveyDate) &&
                       Answer1.Equals(response.Answer1) &&
                       Answer2.Equals(response.Answer2) &&
                       Answer3.Equals(response.Answer3) &&
                       Answer4.Equals(response.Answer4) &&
                       Answer5.Equals(response.Answer5) &&
                       Answer6.Equals(response.Answer6));
            }

            return(false);
        }