Esempio n. 1
0
        protected void ReopenButton_Click(object sender, EventArgs e)
        {
            XrmContext.SetCaseStatusAndSave(Case, "Active", null);

            XrmContext.Detach(Case);

            Response.Redirect(Request.RawUrl);
        }
Esempio n. 2
0
        protected void ResolveButton_Click(object sender, EventArgs e)
        {
            EditPanel.Enabled = false;

            CloseRelatedActivities();

            Case.CustomerSatisfactionCode = int.Parse(Satisfaction.SelectedValue);

            XrmContext.Attach(Case);
            XrmContext.UpdateObject(Case);
            XrmContext.SaveChanges();
            XrmContext.SetCaseStatusAndSave(Case, "Resolved", Resolution.Text);
            XrmContext.Detach(Case);

            Response.Redirect(Request.RawUrl);
        }