You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

37 lines
1.1 KiB

11 years ago
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6. namespace Sevomin.Models
  7. {
  8. public class JobApplicationViewModel
  9. {
  10. public long JobId { get; set; }
  11. public string DovominDisplayName { get; set; }
  12. public string DovominId { get; set; }
  13. public string JobSummary { get; set; }
  14. public string CoverLetter { get; set; }
  15. public JobApplicationViewModel()
  16. {
  17. }
  18. public JobApplicationViewModel(DovominJob dj)
  19. {
  20. this.JobId = dj.JobId;
  21. this.DovominDisplayName = dj.Dovomin.DisplayName;
  22. this.DovominId = dj.DovominId;
  23. this.CoverLetter = dj.CoverLetter;
  24. StringBuilder sb = new StringBuilder("کارشناس برنامه ریزی و کنترل پروژه ");
  25. var jmvm = new JobMiniViewModel(dj.Job, 2);
  26. foreach (var param in jmvm.Parameters)
  27. sb.Append(string.Format(param.Item1 + " ", param.Item2));
  28. this.JobSummary = sb.ToString();
  29. }
  30. }
  31. }