private void PopulateApproval(string approvalId) { //var approvalQuery = "SELECT * FROM " + SibiApprovalColumns.TableName + " WHERE " + SibiApprovalColumns.UID + " ='" + approvalId + "'"; //this.Approval = new Models.RequestApproval(DBFactory.GetDatabase().DataTableFromQueryString(approvalQuery)); var newApproval = new Models.RequestApproval(approvalId); DBFunctions.PopApprovalData(ref newApproval); this.Approval = newApproval; }
private static string NewApprovalBody(Models.RequestApproval approval) { string bodyHTML = ""; bodyHTML += "<p>You have recieved a new Sibi change approval request.</p>"; bodyHTML += "<p><a href='http://" + currentServer + "/Sibi/Approval?id=" + approval.GUID + "' target='_blank' rel='noopener'>Please click here to view the request.</a></p>"; return(bodyHTML); }
private static string RejectBody(Models.RequestApproval approval) { string bodyHTML = ""; bodyHTML += "<p>" + approval.Approver.FullName + " has REJECTED the change request for " + approval.SibiRequest.Description + "</p>"; bodyHTML += "<p><a href='http://" + currentServer + "/Sibi/Approval?id=" + approval.GUID + "' target='_blank' rel='noopener'>Click here to view the request.</a></p>"; return(bodyHTML); }
public Notification(NotificationType type, Models.RequestApproval approval) { Type = type; Approval = approval; }