public void TestMethod1() { string p1 = "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"; string de = MapCipher.Decrypt(p1); string en = MapCipher.Encrypt(de); Assert.AreEqual(p1, en); }
public virtual string ProjectUnRiskUrl(string appName) { appName = appName == "" ? "" : "/" + appName; switch (this.StatusCategory) { case StatusCategory.UnRisk: return(string.Format("<a class='link' href='{0}/Government/ProjectSummary?p={1}'>{2}</a>", appName, MapCipher.Encrypt(HttpUtility.UrlEncode(this.ID.ToString())), this.Name)); default: return("unLink"); } }
public virtual string ProjectCompleteSignUrl(string appName) { appName = appName == "" ? "" : "/" + appName; return(string.Format("<a class='link' href='{0}/Government/ProjectSignSummary?p={1}'>{2}</a>", appName, MapCipher.Encrypt(HttpUtility.UrlEncode(this.ID.ToString())), this.Name)); }
public virtual string ProjectIncompleteUrl(string appName) { appName = appName == "" ? "" : "/" + appName; switch (this.Status) { case Status.SaveDeail: return(string.Format("<a class='link' href='{0}/Government/ProjectFilter?p={1}'>{2}</a>", appName, MapCipher.Encrypt(HttpUtility.UrlEncode(this.ID.ToString())), this.Name)); case Status.SaveFilter: return(string.Format("<a class='link' href='{0}/Government/ProjectBasicInfo?p={1}'>{2}</a>", appName, MapCipher.Encrypt(HttpUtility.UrlEncode(this.ID.ToString())), this.Name)); case Status.SaveBasicInfo: return(string.Format("<a class='link' href='{0}/Government/ProjectCategory?p={1}'>{2}</a>", appName, MapCipher.Encrypt(HttpUtility.UrlEncode(this.ID.ToString())), this.Name)); case Status.SaveCategory: return(string.Format("<a class='link' href='{0}/Government/ProjectType?p={1}'>{2}</a>", appName, MapCipher.Encrypt(HttpUtility.UrlEncode(this.ID.ToString())), this.Name)); case Status.SaveType: case Status.SaveAnswerSetA1: case Status.SaveAnswerSetA2: case Status.SaveAnswerSetB1: case Status.SaveAnswerSetB2: case Status.SaveAnswerSetB3: case Status.SaveAnswerSetB4: case Status.SaveAnswerSetB5: case Status.SaveAnswerSetB6: case Status.SaveAnswerSetC1: case Status.SaveAnswerSetD1: case Status.SaveAnswerSetD2: case Status.SaveAnswerSetD3: case Status.SaveAnswerSetD4: case Status.SaveAnswerSetD5: case Status.SaveAnswerSetD6: case Status.SaveAnswerSetE1: case Status.SaveAnswerSetR1: case Status.SaveAnswerSetR2: case Status.SaveAnswerSetR3: case Status.SaveAnswerSetR4: case Status.SaveAnswerSetR5: return(string.Format("<a class='link' href='{0}/Government/QuestionChoice?p={1}'>{2}</a>", appName, MapCipher.Encrypt(HttpUtility.UrlEncode(this.ID.ToString())), this.Name)); case Status.SaveAnswerSetR6: return(string.Format("<a class='link' href='{0}/Government/ProjectSummary?p={1}'>{2}</a>", appName, MapCipher.Encrypt(HttpUtility.UrlEncode(this.ID.ToString())), this.Name)); default: return("unLink"); } }