Browse Source

bugz

confirmation-email
J 11 years ago
parent
commit
2290a5f925
2 changed files with 5 additions and 0 deletions
  1. +1
    -0
      Sevomin.Models/JobParameterViewModel.cs
  2. +4
    -0
      Sevomin.Models/Repositories/JobRepository.cs

+ 1
- 0
Sevomin.Models/JobParameterViewModel.cs View File

@ -45,6 +45,7 @@ namespace Sevomin.Models
CommentAvalin = jp.Parameter.CommentAvalin;
CommentDovomin = jp.Parameter.CommentDovomin;
ParameterValues = new List<Tuple<decimal, string>>();
foreach (var val in jp.Parameter.ParameterValues)
{
ParameterValues.Add(new Tuple<decimal, string>(val.NumbericValue, val.Value));


+ 4
- 0
Sevomin.Models/Repositories/JobRepository.cs View File

@ -66,6 +66,10 @@ namespace Sevomin.Models.Repositories
public Job GetEmptyJobFor(Avalin avalin)
{
Job job = new Job();
var parameters = ParameterRepository.Current.ListAll();
job.JobParameters = new List<JobParameter>();
foreach (var param in ParameterRepository.Current.ListAll())
{
JobParameter jp = new JobParameter(job, param);


Loading…
Cancel
Save