public JobIndex(AbstractJobIndexId abstractJobIndexId, Period period, SharedJobIndex sharedJobIndex, JobIndexGroup group, bool isInquireable, long calculationLevel = 1, int calculationOrder = 1) { if (period == null) { throw new ArgumentNullException("period"); } period.CheckAssigningJobIndex(); if (sharedJobIndex == null) { throw new ArgumentNullException("sharedJobIndex"); } if (group == null) { throw new ArgumentNullException("group"); } if (!group.PeriodId.Equals(period.Id)) { throw new JobIndexCompareException("JobIndex", "JobIndexGroup", "Period"); } this.calculationLevel = calculationLevel; // must be check periodId id = abstractJobIndexId; periodId = period.Id; this.group = group; this.sharedJobIndex = sharedJobIndex; this.isInquireable = isInquireable; this.calculationOrder = calculationOrder; }
public virtual void Update(JobIndexGroup group, bool isInquireable, Dictionary <SharedJobIndexCustomField, string> customFieldValueItems, IPeriodManagerService periodChecker, int calculationOrder, long calculationLevel = 1) { periodChecker.CheckUpdatingJobIndex(this); if (!group.PeriodId.Equals(periodId)) { throw new JobIndexCompareException("JobIndex", "JobIndexGroup", "Period"); } this.group = group; this.isInquireable = isInquireable; this.calculationLevel = calculationLevel; this.calculationOrder = calculationOrder; UpdateCustomFields(customFieldValueItems); }
public JobIndexGroup(AbstractJobIndexId jobIndexGroupId, Period period, JobIndexGroup parent, string name, string dictionaryName) { if (jobIndexGroupId == null) { throw new ArgumentNullException("jobIndexGroupId"); } if (period == null) { throw new ArgumentNullException("period"); } this.parent = parent; periodId = period.Id; id = jobIndexGroupId; this.name = name; this.dictionaryName = dictionaryName; }
public virtual void Update(JobIndexGroup parent, string name, string dictionaryName) { this.name = name; this.dictionaryName = dictionaryName; this.parent = parent; }