public dtoCriterion(long id, String name, int display) : base() { Id = id; DisplayOrder = display; Name = name; WeightSettings = new lm.Comol.Core.Dss.Domain.Templates.dtoItemWeightSettings(); MethodSettings = new lm.Comol.Core.Dss.Domain.Templates.dtoItemMethodSettings(); }
public static dtoItemMethodSettings Create(ItemMethodSettings item, Boolean useFatherManualWeights, Boolean isDefaultForChildren, DssError error = DssError.None) { dtoItemMethodSettings dto = new dtoItemMethodSettings(); dto.IdMethod = item.IdMethod; dto.IdRatingSet = item.IdRatingSet; dto.InheritsFromFather = item.InheritsFromFather; dto.IsFuzzyMethod = item.IsFuzzyMethod; dto.UseManualWeights = item.UseManualWeights; dto.UseOrderedWeights = item.UseOrderedWeights; dto.UseFatherManualWeights = useFatherManualWeights; dto.IsDefaultForChildren = isDefaultForChildren; dto.Error = error; return(dto); }
public dtoItemMethodSettings Copy() { dtoItemMethodSettings dto = new dtoItemMethodSettings(); dto.IdMethod = IdMethod; dto.IdRatingSet = IdRatingSet; dto.InheritsFromFather = InheritsFromFather; dto.IsFuzzyMethod = IsFuzzyMethod; dto.UseManualWeights = UseManualWeights; dto.IsDefaultForChildren = IsDefaultForChildren; dto.UseOrderedWeights = UseOrderedWeights; dto.FuzzyMeWeights = FuzzyMeWeights; dto.UseFatherManualWeights = UseFatherManualWeights; dto.Error = Error; return(dto); }
public void RemoveCriterion(List <dtoCommittee> committees, Boolean useDssMethod, long idCriterion) { long pIdCommittee = 0; long pIdCriterion = 0; long idCall = View.IdCall; Int32 idCommunity = View.IdCommunity; try { lm.Comol.Core.Dss.Domain.Templates.dtoItemMethodSettings settings = (useDssMethod ? View.GetCallDssSettings() : null); Service.SaveCommittees(idCall, committees, settings); if (Service.VirtualDeleteCriterion(idCriterion, true, ref pIdCommittee, ref pIdCriterion)) { if (useDssMethod) { Service.UpdateCommitteeManualSettings(committees, idCriterion); } View.SendUserAction(idCommunity, View.IdCallModule, idCall, ModuleCallForPaper.ActionType.VirtualDeleteCriterion); if (pIdCriterion != 0) { View.ReloadEditor(RootObject.CriterionRemovedFromCommittee(pIdCriterion, idCall, idCommunity, View.PreloadView)); } else { View.ReloadEditor(RootObject.CommitteeRemovedFromCall(pIdCommittee, idCall, idCommunity, View.PreloadView)); } } else { View.DisplayError(EvaluationEditorErrors.RemovingCriterion); } } catch (EvaluationStarted exSubmission) { View.DisplayError(EvaluationEditorErrors.RemovingCriterion); } catch (Exception ex) { View.DisplayError(EvaluationEditorErrors.RemovingCriterion); } }
public dtoCriterion() : base() { WeightSettings = new lm.Comol.Core.Dss.Domain.Templates.dtoItemWeightSettings(); MethodSettings = new lm.Comol.Core.Dss.Domain.Templates.dtoItemMethodSettings(); }