From c8ed6f00080c30bee5dca46e2b00ba9187aed086 Mon Sep 17 00:00:00 2001 From: miladkdz Date: Mon, 15 Sep 2014 10:15:47 +0430 Subject: [PATCH] Job Affinity Updated and Fixed for good. --- Sevomin.Models/DovominJobViewModel.cs | 2 +- Sevomin.WebFrontend/Views/Job/Apply.cshtml | 6 +++--- Sevomin.WebFrontend/Views/Job/SingleJob.cshtml | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/Sevomin.Models/DovominJobViewModel.cs b/Sevomin.Models/DovominJobViewModel.cs index bc4f30a..5d4a0a1 100644 --- a/Sevomin.Models/DovominJobViewModel.cs +++ b/Sevomin.Models/DovominJobViewModel.cs @@ -66,7 +66,7 @@ namespace Sevomin.Models this.JobId = dovominJob.JobId; this.ApplyDate = dovominJob.ApplyDate; this.CoverLetter = dovominJob.CoverLetter; - this.Affinity = dovominJob.Affinity; + this.Affinity = (int)(dovominJob.Affinity * 100); this.MinimumRequirement = dovominJob.MinimumRequirement; this.AvalinSeen = dovominJob.AvalinSeen; this.AvalinComment = dovominJob.AvalinComment; diff --git a/Sevomin.WebFrontend/Views/Job/Apply.cshtml b/Sevomin.WebFrontend/Views/Job/Apply.cshtml index b1a9f0e..ddceedb 100644 --- a/Sevomin.WebFrontend/Views/Job/Apply.cshtml +++ b/Sevomin.WebFrontend/Views/Job/Apply.cshtml @@ -12,10 +12,10 @@ {
- میزان مطابقت شما با این فرصت شغلی @(Model.Affinity * 100) درصد می باشد. + میزان مطابقت شما با این فرصت شغلی @(Model.Affinity) درصد می باشد.
-
- @((float)(Model.Affinity * 100))% +
+ @((float)(Model.Affinity))%
diff --git a/Sevomin.WebFrontend/Views/Job/SingleJob.cshtml b/Sevomin.WebFrontend/Views/Job/SingleJob.cshtml index d1121d1..5739159 100644 --- a/Sevomin.WebFrontend/Views/Job/SingleJob.cshtml +++ b/Sevomin.WebFrontend/Views/Job/SingleJob.cshtml @@ -79,4 +79,4 @@
- + \ No newline at end of file