예제 #1
0
        internal ProductionShift(Production production, ProductionTeam team, DateTime date)
        {
            if (production == null)
                throw new ArgumentNullException("production");

            if (team == null)
                throw new ArgumentNullException("team");

            this.productionLegList = new List<ProductionLeg>();
            this.production = production;
            this.team = team;
            this.date = date.Date;
        }
예제 #2
0
파일: Production.cs 프로젝트: mikkela/oee
        public virtual ProductionShift AddProductionShift(ProductionTeam team, DateTime date)
        {
            foreach (ProductionShift shift in shiftList)
            {
                if (shift.Date.Equals(date.Date) &&
                    shift.Team.Equals(team))
                    return shift;
            }

            ProductionShift result = new ProductionShift(this, team, date);
            shiftList.Add(result);

            return result;
        }