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