|
|
|
@ -54,14 +54,14 @@ public class Posting
@@ -54,14 +54,14 @@ public class Posting
|
|
|
|
|
{ |
|
|
|
|
switch (i) |
|
|
|
|
{ |
|
|
|
|
case 0: this.Agency = link.InnerHtml.Trim(); break; |
|
|
|
|
case 0: this.Agency = link.InnerHtml.Trim(); break; |
|
|
|
|
case 1: this.Title = link.InnerHtml.Trim(); break; |
|
|
|
|
case 2: this.OccupationalCategory = link.InnerHtml.Trim(); break; |
|
|
|
|
case 3: this.SalaryGrade = link.InnerHtml.Trim(); break; |
|
|
|
|
case 4: this.BargainingUnit = link.InnerHtml.Trim(); break; |
|
|
|
|
case 5: this.SalaryRange = link.InnerHtml.Trim(); break; |
|
|
|
|
case 6: this.EmploymentType = link.InnerHtml.Trim(); break; |
|
|
|
|
case 7: this.AppointmentType = link.InnerHtml.Trim(); break; |
|
|
|
|
case 5: this.SalaryRange = link.InnerHtml.Trim(); break; |
|
|
|
|
case 6: this.EmploymentType = link.InnerHtml.Trim(); break; |
|
|
|
|
case 7: this.AppointmentType = link.InnerHtml.Trim(); break; |
|
|
|
|
case 8: this.JurisdictionalClass = link.InnerHtml.Trim(); break; |
|
|
|
|
case 9: this.TravelPercentage = link.InnerHtml.Trim(); break; |
|
|
|
|
case 19: this.LocationAddress.Street = link.InnerHtml.Trim(); break; |
|
|
|
@ -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); |
|
|
|
|
ret = ret.Replace("$email", data.email); |
|
|
|
|
if (!string.IsNullOrEmpty(data.email)) |
|
|
|
|
{ |
|
|
|
|
|
|
|
|
|
ret = ret.Replace("$email", data.email); |
|
|
|
|
} |
|
|
|
|
string skillRet = "• " + skills.Replace(",", "• "); |
|
|
|
|
ret = ret.Replace("$skills", skillRet); |
|
|
|
|
|
|
|
|
|