Esempio n. 1
0
 //public dtoEvaluation(Evaluation evaluation) :base(evaluation)
 //{
 //    ModifiedOn = evaluation.ModifiedOn;
 //    EvaluationStartedOn = evaluation.EvaluationStartedOn;
 //    EvaluatedOn = evaluation.EvaluatedOn;
 //    AverageRating= evaluation.AverageRating;
 //    SumRating= evaluation.SumRating;
 //    Comment = evaluation.Comment;
 //    Criteria = new List<dtoCriterionEvaluated>();
 //    SubmitterType = (evaluation.Submission != null) ? evaluation.Submission.Type.Name : "";
 //}
 public dtoEvaluation(
     lm.Comol.Modules.CallForPapers.Domain.Evaluation.Export.expEvaluation evaluation,
     DssCallEvaluation dssEvaluation,
     String anonymousDisplayName,
     String unknownUserName)
     : base(evaluation, anonymousDisplayName, unknownUserName)
 {
     ModifiedOn          = evaluation.LastUpdateOn;
     EvaluationStartedOn = evaluation.EvaluationStartedOn;
     EvaluatedOn         = evaluation.EvaluatedOn;
     AverageRating       = evaluation.AverageRating;
     SumRating           = evaluation.SumRating;
     DssRating           = new dtoDssRating()
     {
         IsValid = false
     };
     DssRating.IsValid     = evaluation.UseDss && (dssEvaluation != null && dssEvaluation.IsValid);
     DssRating.IsCompleted = evaluation.UseDss && (dssEvaluation != null && dssEvaluation.IsCompleted);
     DssRating.Ranking     = evaluation.DssRanking;
     DssRating.Value       = evaluation.DssValue;
     DssRating.ValueFuzzy  = evaluation.DssValueFuzzy;
     DssRating.IsFuzzy     = evaluation.DssIsFuzzy;
     Comment       = evaluation.Comment;
     Criteria      = new List <dtoCriterionEvaluated>();
     SubmitterType = (evaluation.Submission != null) ? evaluation.Submission.Type.Name : "";
 }
Esempio n. 2
0
 public dtoEvaluation()
 {
     Deleted   = BaseStatusDeleted.None;
     Criteria  = new List <dtoCriterionEvaluated>();
     DssRating = new dtoDssRating()
     {
         IsValid = false
     };
 }