protected void btnSave_Click(object sender, System.EventArgs e) { btnSave.Disabled = true; string body = ""; body = tbBody.Text; IncidentBoxDocument ibd = IncidentBoxDocument.Load(IncidentBoxId); if (ibd != null) { if (Template.IndexOf("Issue_Created") >= 0) { ibd.GeneralBlock.AutoReplyEMailBodyTemplate = body; ibd.GeneralBlock.AutoReplyEMailSubjectTemplate = tbSubject.Text; } else if (Template.IndexOf("Issue_Closed") >= 0) { ibd.GeneralBlock.OnCloseAutoReplyEMailBodyTemplate = body; ibd.GeneralBlock.OnCloseAutoReplyEMailSubjectTemplate = tbSubject.Text; } IncidentBoxDocument.Save(ibd); } //AlertTemplate.UpdateTemplate(Language,Template,tbSubject.Text,body); Response.Redirect("~/Admin/EmailIssueBoxView.aspx?IssBoxId=" + IncidentBoxId.ToString()); }
private void btnReset_ServerClick(object sender, EventArgs e) { //AlertTemplate.ResetTemplate(Language,Template); IncidentBoxDocument ibd = IncidentBoxDocument.Load(IncidentBoxId); if (ibd != null) { ibd.GeneralBlock.ResetOutgoingEmailFormat(); IncidentBoxDocument.Save(ibd); } bCustom = false; BindValues(); secHdr.Title = title; }
protected void btnSave_Click(object sender, System.EventArgs e) { btnSave.Disabled = true; string body = ""; body = tbBody.Text; IncidentBoxDocument ibd = IncidentBoxDocument.Load(IncidentBoxId); if (ibd != null) { ibd.GeneralBlock.OutgoingEmailFormatBody = body; ibd.GeneralBlock.OutgoingEmailFormatSubject = tbSubject.Text; IncidentBoxDocument.Save(ibd); } //AlertTemplate.UpdateTemplate(Language,Template,tbSubject.Text,body); Response.Redirect("~/Admin/EmailIssueBoxView.aspx?IssBoxId=" + IncidentBoxId.ToString()); }
private void btnReset_ServerClick(object sender, EventArgs e) { //AlertTemplate.ResetTemplate(Language,Template); IncidentBoxDocument ibd = IncidentBoxDocument.Load(IncidentBoxId); if (ibd != null) { if (Template.IndexOf("Issue_Created") >= 0) { ibd.GeneralBlock.ResetAutoReplySettings(); } else if (Template.IndexOf("Issue_Closed") >= 0) { ibd.GeneralBlock.ResetOnCloseAutoReplySettings(); } IncidentBoxDocument.Save(ibd); } //bCustom = false; BindValues(); secHdr.Title = title; }