|
|
|
@ -89,13 +89,18 @@ public class Posting
@@ -89,13 +89,18 @@ public class Posting
|
|
|
|
|
this.VacancyID = id; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public string GenerateLetter(string s, UserData data, string skills) { |
|
|
|
|
public string GenerateLetter(string s, UserData data, string skills) |
|
|
|
|
{ |
|
|
|
|
string ret = "" + s; |
|
|
|
|
ret = ret.Replace("$name", this.ContactName); |
|
|
|
|
ret = ret.Replace("$vacancy", this.VacancyID); |
|
|
|
|
ret = ret.Replace("$title", this.Title); |
|
|
|
|
ret = ret.Replace("$box", this.BoxNumber); |
|
|
|
|
if (!string.IsNullOrEmpty(data.email)) |
|
|
|
|
{ |
|
|
|
|
|
|
|
|
|
ret = ret.Replace("$email", data.email); |
|
|
|
|
} |
|
|
|
|
string skillRet = "• " + skills.Replace(",", "• "); |
|
|
|
|
ret = ret.Replace("$skills", skillRet); |
|
|
|
|
|
|
|
|
|