Esempio n. 1
0
        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;
        }
Esempio n. 2
0
        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);
        }
Esempio n. 3
0
        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);
        }
Esempio n. 4
0
 public Notification(NotificationType type, Models.RequestApproval approval)
 {
     Type     = type;
     Approval = approval;
 }